package com.zch.news.entity;
/**
 * 
 * @ClassName: User 
 * @Description: 用户实体类
 * @author: zch
 * @version: 1.10
 * @date: 2018年8月28日 下午2:14:09
 */
public class User {
	private int id;
	private String phone;//手机号
	private String password;//用户密码
	private int role;//用户角色，0表示管理员，1表示一般用户
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public int getRole() {
		return role;
	}
	public void setRole(int role) {
		this.role = role;
	}
	public User(String name, String password, int role) {
		super();
		this.phone = name;
		this.password = password;
		this.role = role;
	}
	public User() {
		super();
	}
	
}
